gdk/toplevel: Make gdk_toplevel_present() async
authorJonas Ådahl <jadahl@gmail.com>
Fri, 20 Nov 2020 15:56:36 +0000 (16:56 +0100)
committerJonas Ådahl <jadahl@gmail.com>
Mon, 7 Dec 2020 08:46:39 +0000 (09:46 +0100)
commit641915974be5113ab3bb16e1b5aa0be274d66608
tree9373f93714ba5699b0aed9165b7e1e01ab032679
parent528ec4ddedbf7600c9456e684e5fa82752d8ecf4
gdk/toplevel: Make gdk_toplevel_present() async

The plan is to concencrate size computations as part of the frame clock
dispatch, meaning we shouldn't do it synchronously in the present()
function.

Still, in Wayland, and maybe elsewhere, it is done in the present()
function, e.g. when no state change was made, but this will eventually
be changed.
gdk/broadway/gdksurface-broadway.c
gdk/gdktoplevel.c
gdk/gdktoplevel.h
gdk/gdktoplevelprivate.h
gdk/wayland/gdksurface-wayland.c
gdk/x11/gdksurface-x11.c